*******************************************************************************
******************************  TABLE A13  ************************************
******* Effects of Formal Leadership and Gender Composition, Study 2  *********
*******************************************************************************

clear all
set more off

//cd "C:/Users/ganth/Dropbox/StrengthInNumbersReplicationPackage/replicable/table_a13"

*******************************************************************************
 
**Evaluating changes in global asssessments over time and across leader conditions
use "table_a13_dataset.dta", clear

ttest femvotesminfl_s4_ratio =1 if maleMajority==0 & fem_leader==1
ttest femvotesminfl_s4_ratio =1 if maleMajority==1 & fem_leader==1
ttest femvotesminfl_s4_ratio =1 if maleMajority==1 & fem_leader==0
ttest femvotesminfl_s4_ratio =1 if maleMajority==0 & fem_leader==0
reg femvotesminfl_s4_ratio fem_leader, robust
reg femvotesminfl_s4_ratio fem_leader maleMajority, robust
reg femvotesminfl_s5_ratio fem_leader maleMajority, robust
ttest femvotesminfl_s5_ratio=1 if fem_leader==1
ttest femvotesminfl_s5_ratio=femvotesminfl_s3_ratio if fem_leader==1 & maleMajority==1
ttest femvotesminfl_s5_ratio if maleMajority==1, by(fem_leader)


reg femvotesminfl_s2_ratio  maleMajority, robust
outreg2 using "table_a13.tex", replace 
reg femvotesminfl_s3_ratio maleMajority, robust
outreg2 using "table_a13.tex", append 
reg femvotesminfl_s4_ratio fem_leader maleMajority, robust
outreg2 using "table_a13.tex", append 
reg femvotesminfl_s5_ratio fem_leader maleMajority, robust
outreg2 using "table_a13.tex", append label tex(frag) 
